<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/command.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('command_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">command.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="command_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#ifndef COMMAND_H_</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#define COMMAND_H_</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="local_types_8h.html">pcl/apps/point_cloud_editor/localTypes.h</a>&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_command.html">   49</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_command.html">Command</a></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_command.html#a641c23ef533dd6f77d0a4ef0311598b2">   53</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_command.html#a641c23ef533dd6f77d0a4ef0311598b2">~Command</a> ()</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_command.html#a01d35a361d1b3ee0eb628df6e3914044">   60</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_command_queue.html">CommandQueue</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_command.html#a18df2d81039392daeb0b78c346a70537">   65</a></span>&#160;    <a class="code" href="class_command.html#a18df2d81039392daeb0b78c346a70537">Command</a> () : <a class="code" href="class_command.html#a6524158d3dd197cef746c64cd0e079e0">has_undo_</a>(true)</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">inline</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_command.html#af06c78301f9782a47b838b619c4edfaf">   72</a></span>&#160;    <a class="code" href="class_command.html#af06c78301f9782a47b838b619c4edfaf">hasUndo</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      <span class="keywordflow">return</span> (<a class="code" href="class_command.html#a6524158d3dd197cef746c64cd0e079e0">has_undo_</a>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">virtual</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_command.html#a6fd7d9bd8df8bfc881e4d6c7cd1878b7">   80</a></span>&#160;    <a class="code" href="class_command.html#a6fd7d9bd8df8bfc881e4d6c7cd1878b7">execute</a> () = 0;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">virtual</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_command.html#ad5eccd34dc85abda2cd0c21d819c17dc">   85</a></span>&#160;    <a class="code" href="class_command.html#ad5eccd34dc85abda2cd0c21d819c17dc">undo</a> () = 0;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_command.html#a6524158d3dd197cef746c64cd0e079e0">   88</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_command.html#a6524158d3dd197cef746c64cd0e079e0">has_undo_</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_command.html#a73edafc4b38e3c5febe1270f1c6ef0d5">   92</a></span>&#160;    <a class="code" href="class_command.html#a73edafc4b38e3c5febe1270f1c6ef0d5">Command</a> (<span class="keyword">const</span> <a class="code" href="class_command.html">Command</a>&amp;)</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;      assert(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="class_command.html">Command</a>&amp;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_command.html#aee0b09b7cf5f12de7d7bd8cbe46ddab7">   99</a></span>&#160;    <a class="code" href="class_command.html#aee0b09b7cf5f12de7d7bd8cbe46ddab7">operator= </a>(<span class="keyword">const</span> <a class="code" href="class_command.html">Command</a>&amp;)</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;      assert(<span class="keyword">false</span>); <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;};</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#endif </span><span class="comment">//COMMAND_H_</span></div>
<div class="ttc" id="aclass_command_html"><div class="ttname"><a href="class_command.html">Command</a></div><div class="ttdoc">The abstract parent class of all the command classes. Commands are non-copyable.</div><div class="ttdef"><b>Definition:</b> command.h:50</div></div>
<div class="ttc" id="aclass_command_html_a18df2d81039392daeb0b78c346a70537"><div class="ttname"><a href="class_command.html#a18df2d81039392daeb0b78c346a70537">Command::Command</a></div><div class="ttdeci">Command()</div><div class="ttdoc">The default constructor.</div><div class="ttdef"><b>Definition:</b> command.h:65</div></div>
<div class="ttc" id="aclass_command_html_a641c23ef533dd6f77d0a4ef0311598b2"><div class="ttname"><a href="class_command.html#a641c23ef533dd6f77d0a4ef0311598b2">Command::~Command</a></div><div class="ttdeci">virtual ~Command()</div><div class="ttdoc">Destructor</div><div class="ttdef"><b>Definition:</b> command.h:53</div></div>
<div class="ttc" id="aclass_command_html_a6524158d3dd197cef746c64cd0e079e0"><div class="ttname"><a href="class_command.html#a6524158d3dd197cef746c64cd0e079e0">Command::has_undo_</a></div><div class="ttdeci">bool has_undo_</div><div class="ttdoc">a flag indicates whether the command has an undo function.</div><div class="ttdef"><b>Definition:</b> command.h:88</div></div>
<div class="ttc" id="aclass_command_html_a6fd7d9bd8df8bfc881e4d6c7cd1878b7"><div class="ttname"><a href="class_command.html#a6fd7d9bd8df8bfc881e4d6c7cd1878b7">Command::execute</a></div><div class="ttdeci">virtual void execute()=0</div><div class="ttdoc">Executes the command.</div></div>
<div class="ttc" id="aclass_command_html_a73edafc4b38e3c5febe1270f1c6ef0d5"><div class="ttname"><a href="class_command.html#a73edafc4b38e3c5febe1270f1c6ef0d5">Command::Command</a></div><div class="ttdeci">Command(const Command &amp;)</div><div class="ttdoc">Copy Constructor - object is non-copyable</div><div class="ttdef"><b>Definition:</b> command.h:92</div></div>
<div class="ttc" id="aclass_command_html_ad5eccd34dc85abda2cd0c21d819c17dc"><div class="ttname"><a href="class_command.html#ad5eccd34dc85abda2cd0c21d819c17dc">Command::undo</a></div><div class="ttdeci">virtual void undo()=0</div><div class="ttdoc">Undos the command.</div></div>
<div class="ttc" id="aclass_command_html_aee0b09b7cf5f12de7d7bd8cbe46ddab7"><div class="ttname"><a href="class_command.html#aee0b09b7cf5f12de7d7bd8cbe46ddab7">Command::operator=</a></div><div class="ttdeci">Command &amp; operator=(const Command &amp;)</div><div class="ttdoc">Equal Operator - object is non-copyable</div><div class="ttdef"><b>Definition:</b> command.h:99</div></div>
<div class="ttc" id="aclass_command_html_af06c78301f9782a47b838b619c4edfaf"><div class="ttname"><a href="class_command.html#af06c78301f9782a47b838b619c4edfaf">Command::hasUndo</a></div><div class="ttdeci">bool hasUndo() const</div><div class="ttdoc">Returns true if the command has an undo function.</div><div class="ttdef"><b>Definition:</b> command.h:72</div></div>
<div class="ttc" id="aclass_command_queue_html"><div class="ttname"><a href="class_command_queue.html">CommandQueue</a></div><div class="ttdoc">A structure for managing commands</div><div class="ttdef"><b>Definition:</b> commandQueue.h:54</div></div>
<div class="ttc" id="alocal_types_8h_html"><div class="ttname"><a href="local_types_8h.html">localTypes.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="command_8h.html">command.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
